package com.controller;

import java.util.Date;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.dto.LoginUser;
import com.service.ILoginUserService;

@Controller
@RequestMapping("/user")
public class UserController {

	@Resource
	private ILoginUserService userService;
	
	@RequestMapping("/showUser")
	public ModelAndView toIndex(HttpServletRequest request)
	{
		 ModelAndView model =new ModelAndView("showUser");
		//int userId=Integer.parseInt(request.getParameter("id"));
	  //LoginUser user=	this.userService.getUserById(userId);
	  model.addObject("time", new Date());
	  return model;
	  
	}
}
